package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {


    // 套餐列表
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    void save(Setmeal setmeal);

    //修改时回显
    Setmeal findById(Long id);

    //修改
    void updateSetmeal(Setmeal setmeal);

    //起售,停售
    void updateStatusSetmeal(Integer status, List<Long> ids);

    // 删除套餐
    void deleteBatch(List<Long> ids);

    // 套餐列表
    List<Setmeal> list(Long categoryId, Integer status);

    // 查看套餐详情
    List<Dish> findDishDetail(Long id);
}
